package unit.panels;

import com.golden.gamedev.object.CollisionManager;
import com.golden.gamedev.object.Sprite;
import com.golden.gamedev.object.SpriteGroup;

public class HorizantalFlipPanel extends AbstractPanel{
	private static final long serialVersionUID = 1L;
	
	CollisionManager collision;
	SpriteGroup flips;
	
	public HorizantalFlipPanel(Sprite sprite) {
		super(sprite);
	}
	
	public void operate(Sprite walker){
		if(walker.getVerticalSpeed() != 0){
		walker.setHorizontalSpeed(walker.getVerticalSpeed()*-1);
		}
		else{walker.setHorizontalSpeed(walker.getHorizontalSpeed()*-1);
		}
		walker.setVerticalSpeed(0);
	}
	
	

}
